package tw.com.diray;

import java.util.Random;

import android.app.NotificationManager;
import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;

public class LocalService extends Service {

	private static final String TAG = LocalService.class.getName();

	private final Random mGenerator = new Random();

	private IBinder mBinder = new LocalBinder();

	@Override
	public IBinder onBind(Intent intent) {

		return mBinder;
	}

	public class LocalBinder extends Binder {
		LocalService getService() {
			return LocalService.this;
		}
	}

	public int getRandomNumber() {
		return mGenerator.nextInt(100);
	}

}
